Support globs for src and ignoring paths#165
Support globs for src and ignoring paths#165aperkaz wants to merge 14 commits intottag-org:masterfrom
Conversation
The dependency update is needed in order to use glob and similar packages
Fixtures and test included
| "jest": "^30.2.0", | ||
| "lint-staged": "^5.0.0", | ||
| "prettier": "^1.19.1", | ||
| "ts-jest": "^26.3.0", | ||
| "ts-jest": "^29.4.6", | ||
| "ts-node": "3.3.0", | ||
| "typescript": "^3.9.7" | ||
| "typescript": "^4.3" |
There was a problem hiding this comment.
These may be good changes, but they are strictly unrelated.
There was a problem hiding this comment.
As mentioned in the description, the glob package required a higher version of typescript, thus creating a chain reaction that required updating jest too.
There was a problem hiding this comment.
Ugh... I would personally prefer dependency bumps to be a separate PR, but then again I'm not the owner of this project, maybe they think it's OK.
There was a problem hiding this comment.
I see the value of splitting it into multiple PRs but would appreciate the input of someone with merge and publish privileges.
If you have the rights @dimaqq, I will get right into it 🙂
| "msgid "" | ||
| msgstr "" | ||
| "Content-Type: text/plain; charset=utf-8\\n" | ||
| "Plural-Forms: nplurals=2; plural=(n!=1);\\n" |
There was a problem hiding this comment.
Why are these being changed?
(here, across this file and many other files).
It feels like the change is semantic, the (escaped) backslashes are removed.
There was a problem hiding this comment.
From what I can tell, Jest has changed how snapshots are formatted from v24 to v30.
There was a problem hiding this comment.
That's Jest 29, where escapeString: false is the new default (?)
I would propose that the jest bump is a separate PR, without prod code changes.
Yes, that's a bit of extra work, but hopefully it's mechanical work and easy to review.
Co-authored-by: Dima Tisnek <dimaqq@gmail.com>
Co-authored-by: Dima Tisnek <dimaqq@gmail.com>
This PR is a proposal for adding glob and ignore capabilities to the ttag-cli while keeping backwards compatibility (#78).
Feedback is welcome! 🙂
The feature has been built around the following goals:
Change summary:
globpackage requires a higher version oftypescript, thus creating a chain reaction that required updatingjesttoo).jestversion bump.src/index.tsto inject theignoreargument into thecommands/*.src/libs/utils.ts > resolvePaths. No changes were made to the existing file-walking logic.